package com.mt.roll.report.params;

import com.mt.roll.core.base.BaseParam;
import com.mt.roll.core.validator.groups.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: liguanghao
 * @Date: 2021/3/1 14:04
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "xx参数对象", description = "用于新增和更新xx信息")
public class ReportSheetParam extends BaseParam {
    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键，更新时需要填写", example = "1")
    @NotNull(message = "xxID不能为空", groups = {UpdateGroup.class})
    private Long id;

    /**
     * 分类
     */
    @ApiModelProperty(value = "分类", example = "1")
    private Long category;

    /**
     * 名称
     */
    @ApiModelProperty(value = "xx名称", required = true, example = "xx管理")
    private String name;
    /**
     * 文件名称
     */
    @ApiModelProperty(value = "文件名称", required = true, example = "xx管理")
    @NotBlank(message = "文件名称不能为空")
    private String fileName;
    /**
     * url
     */
    @ApiModelProperty(value = "url", required = true, example = "xx")
    private String url;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "0")
    private String remark;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", example = "0")
    private String description;
}
